import json
from urllib import request

from flask import Flask, render_template, Response
from werkzeug.routing import BaseConverter

app = Flask(__name__)

@app.route('/')
def tologin():
    return render_template('login.html')

@app.route('/index_v1')
def index_v1():
    return render_template('index_v1.html')  # 渲染模板文件
@app.route('/dologin', methods=['POST'])
def dologin():
    param = request.form
    username = param['username']
    password = param['password']
    return render_template('index.html')
@app.route('/index_v3')
def index_v3():
    return render_template('index_v3.html')

if __name__ == '__main__':
    app.run()


